package com.example.study.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 静态资源指定路径
 */
@Controller
@RequestMapping("/html")
@Api(description = "静态资源指定路径")
public class HtmlController {

    @GetMapping("/hello")
    @ApiOperation("hello页面")
    public String hello() {
        return "hello";
    }
    @GetMapping("/login")
    @ApiOperation("login页面")
    public String login() {
        return "Login";
    }

    @ApiOperation("Vue3页面")
    @GetMapping("/dist")
    public String index() {
        return "dist/index";
    }
}